-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add arguments_specs to roles #56
Conversation
@GomathiselviS Can you please rebase? Thanks. |
Certainly, I will mark it as a draft until the PR is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This documentation format is described here https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_documenting.html#semantic-markup-within-module-documentation
@@ -0,0 +1,3 @@ | |||
--- | |||
trivial: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather prefer having this as a minor_changes
azure_load_balancer_with_public_ip_resource_group: | ||
description: | ||
- Resource group on/from which the load balancer will reside. | ||
- When `azure_load_balancer_with_public_ip_operation` is set to create, this resource group will be created if it does not exist. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- When `azure_load_balancer_with_public_ip_operation` is set to create, this resource group will be created if it does not exist. | |
- When O(azure_load_balancer_with_public_ip_operation) is set to create, this resource group will be created if it does not exist. |
vnet_name: | ||
description: | ||
- Name of the existing azure virtual network where the network interface will reside. | ||
- Required when `azure_manage_network_interface_operation`=create. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Required when `azure_manage_network_interface_operation`=create. | |
- Required when O(azure_manage_network_interface_operation=create). |
subnet_name: | ||
description: | ||
- Name of the existing azure subnet where the network interface will reside. | ||
- Required when `azure_manage_network_interface_operation`=create. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Required when `azure_manage_network_interface_operation`=create. | |
- Required when O(azure_manage_network_interface_operation=create). |
This PR adds argument_specs.yml to the roles to enable validation of arguments.
This aligns with https://github.com/ansible-collections/cloud-content-handbook/blob/main/Roles-arguments_validation.md and https://github.com/redhat-cop/automation-good-practices/tree/main/roles#argument-validation